import BattleObj from "../../logic/battle/BattleObj";

export default abstract class SkillTrigger{
    owner: BattleObj;//触发器拥有者
    params:number[];//触发器参数,[触发类型，触发概率，触发类型对应的具体参数]
    type:number;//触发器类型
    skillId:number;//技能id

    constructor(owner: BattleObj, type: number, skillId:number, params:number[]){
        this.owner = owner;
        this.type = type;
        this.skillId = skillId;
        this.params = params;
    }

    /**
     * 初始化
     */
    abstract init();

    /**
     * 是否触发
     */
    abstract isTrigger():boolean;
}